<?php $this->load->view('header', $head); ?>
		<!-- Start of first page: #one -->
		<div data-role="page" id="page-all-locations">
			<div data-role="header">
				<a href="<?=site_url('admin')?>" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
				<h1>위치 테이블</h1>
				<a id = "add_location" href="#" data-role="button" data-icon="+" data-theme="a">위치추가</a>
			</div><!-- /header -->
			
			<div data-role="content" >
				<div data-role="collapsible-set"  >
				<?php if($location){ foreach($location as $k => $i): ?>

					<div data-role="collapsible" data-theme="d" data-content-theme="d">
		            	<h3><?=$i->address_str?></h3>
   						<ul>
   							<li data-role="fieldcontain">
   								<div class="ui-grid-c">
									<div class="ui-block-a">
										<label for="address_id">address_id:</label>
										<?=$i->address_id?>
									</div>
									<div class="ui-block-b">
										<label for="latitude">경도:</label>
								    	<?=$i->lat?>
								    </div>
									<div class="ui-block-c">
										<label for="longitude">위도:</label>
								    	<?=$i->lng?>
								    </div>
									<div class="ui-block-d">
										<label for="radius">반경:</label>
										<?=$i->radius?>m
									</div>
								</div><!-- /grid-c -->
								
									
							</li>
   						</ul>
					</div>
				<?php endforeach; }?>
				</div> <!-- end of collapsable set -->
			</div><!-- /content -->
			<div data-role="footer" data-position="fixed" data-theme="a">
				<?php $this->load->view('navbar', array('active'=>'admin')) ?>
			</div><!-- /footer -->
		</div><!-- /page one -->
<?php $this->load->view('footer'); ?>
